/*
 * @Author: cgl
 * @Date: 2023-04-18 17:42:40
 * @LastEditors: cgl
 * @LastEditTime: 2023-06-29 09:08:33
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\basicData\inspectionStandard.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询检测标准分页列表
export function inspectionStandardList(data) {
  return request({
    url: '/basic/inspection/standard/list',
    method: 'post',
    data,
  })
}
// 导出检测标准列表
export function inspectionStandardExport(data) {
  return request({
    url: `/basic/inspection/standard/export`,
    method: "post",
    data,
  });
}
// 查询检测标准列表
export function inspectionStandardListing(data) {
  return request({
    url: '/basic/inspection/standard/listing',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 获取检测标准详细信息
export function inspectionStandardDetail(standardId) {
  return request({
    url: '/basic/inspection/standard/getInfo/' + standardId,
    method: 'get'
  })
}
// 新增检测标准
export function inspectionStandardAdd(data) {
  return request({
    url: `/basic/inspection/standard/add`,
    method: "post",
    data,
  });
}
// 修改检测标准
export function inspectionStandardEdit(data) {
  return request({
    url: '/basic/inspection/standard/edit',
    method: 'post',
    data,
  })
}
// 删除检测标准
export function inspectionStandardDelete(standardIds) {
  return request({
    url: '/basic/inspection/standard/remove/' + standardIds,
    method: 'get'
  })
}
// 更新状态
export function updateState(standardId, state) {
  return request({
    url: `/basic/inspection/standard/updateState/${standardId}/${state}`,
    method: 'get',
  })
}